package ogs.game.core.codec
{
	import ogs.lib.mina.filter.codec.ProtocolCodecFactory;
	import ogs.lib.mina.filter.codec.ProtocolDecoder;
	import ogs.lib.mina.filter.codec.ProtocolEncoder;
	
	public class MsgCodecFactory implements ProtocolCodecFactory
	{
		private var encoder:ProtocolEncoder;
		private var decoder:ProtocolDecoder;
		
		public function MsgCodecFactory() 
		{	
			encoder = new MsgEncoder();
			decoder = new MsgDecoder();
		}
		
		public function getEncoder():ProtocolEncoder
		{
			return encoder;
		}
		
		public function getDecoder():ProtocolDecoder
		{
			return decoder;
		}
	}
}